package com.dhl.prototypepattern.prototype.deepcopy;

/**
 * @title: DeepTest
 * @Author danghailiang
 * @Date: 2022/7/28 21:57
 * @Version 1.0
 */
public class DeepTest {
    public static void main(String[] args) throws CloneNotSupportedException {
        DeepTom deepTom = new DeepTom(1L, "deepTom", new DeepYang(2L, "deepYang"));
        System.out.println(deepTom);
        System.out.println(deepTom.clone());
        System.out.println(deepTom.clone());
        System.out.println(deepTom.clone());
        System.out.println(deepTom.clone());
    }
}
